Serial.ReadAll Function

Returns all incoming data available in the buffer as a String. The optional Encoding parameter enables you to specify the text encoding of the data to be read.

Syntax

result = Serial.ReadAll( [Encoding] )

Parameters

Encoding

TextEncoding (Optional)

Return Value

Result

String

Notes

Use the Encodings object to specify a text encoding.